Skip to content

adding logic for tc motor - #341

Merged
ctslac merged 1 commit into
pcdshub:masterfrom
ctslac:tcmotors
Jul 22, 2026
Merged

adding logic for tc motor#341
ctslac merged 1 commit into
pcdshub:masterfrom
ctslac:tcmotors

Conversation

@ctslac

@ctslac ctslac commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Description

Added support for beckhoff motors with the RTYP as tcmotor.

Motivation and Context

The user motors pvs have this value

How Has This Been Tested?

I tested on my checkout.

Where Has This Been Documented?

@ctslac
ctslac requested a review from a team as a code owner July 20, 2026 22:37
@ctslac
ctslac requested review from a team and Copilot and removed request for a team July 20, 2026 22:37
@ctslac
ctslac removed the request for review from Copilot July 20, 2026 22:38
# caget will return exit code 0 if :PLC:nErrorId_RBV exists,
# we set isbeckhoff based on this.
if caget "${PREFIX}:PLC:nErrorId_RBV" > /dev/null 2>&1; then
if [[ "${rtyp}" == 'tcmotor' ]] || caget "${PREFIX}:PLC:nErrorId_RBV" > /dev/null 2>&1; then

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you make sure this still works for non tcmotor beckhoff motors?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, regular IMS motors still work; I haven't tested on Aerotech yet. I'm not sure if we still use them.

@ZLLentz ZLLentz Jul 21, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't mean to ask you to test every motor type, just the ones affected by this line: motors on beckhoff IOCs that aren't tcmotor type

@ctslac ctslac Jul 21, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I wanted to check Aerotech becuase I see the beckhoff logic is close the Aerotech. But it still works

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yeah I see now that aerotech is the else clause here- didn't see it on review because it was outside the diff. Good job being thorough.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But yeah I'll approve this if you can confirm that "old" beckhoff motors still work

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep! Tc motors with the RTYP as 'motor' still work.

@ctslac
ctslac merged commit 4d4fd80 into pcdshub:master Jul 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants